//
//  CustomViewController.m
//  PlayerWorld
//
//  Created by 1 on 16/5/12.
//  Copyright © 2016年 刘成. All rights reserved.
//
#define UISCREEN_WIDTH  [UIScreen mainScreen].bounds.size.width
#define UISCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height

#import "CustomViewController.h"

@interface CustomViewController ()

@end

@implementation CustomViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"自定义彩种";
    self.view.backgroundColor = [UIColor groupTableViewBackgroundColor];
    self.tabBarController.tabBar.hidden = YES;
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"完成" style:UIBarButtonItemStylePlain target:self action:@selector(finishButtonAction:)];
    
    UIImageView *customImageView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 80, (UISCREEN_WIDTH-40)/3, (UISCREEN_WIDTH-40)/3)];
    customImageView.image = [UIImage imageNamed:@"logo_qtc_1_sm"];
    customImageView.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:customImageView];
    
    UIImageView *customImageView2 = [[UIImageView alloc]initWithFrame:CGRectMake((UISCREEN_WIDTH-40)/3+20, 80, (UISCREEN_WIDTH-40)/3, (UISCREEN_WIDTH-40)/3)];
    customImageView2.image = [UIImage imageNamed:@"logo_qtc_1_sm"];
    customImageView2.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:customImageView2];
    
    UIImageView *customImageView3 = [[UIImageView alloc]initWithFrame:CGRectMake((UISCREEN_WIDTH-40)/3*2+30, 80, (UISCREEN_WIDTH-40)/3, (UISCREEN_WIDTH-40)/3)];
    customImageView3.image = [UIImage imageNamed:@"logo_qtc_1_sm"];
    customImageView3.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:customImageView3];
    
    UIImageView *customImageView4 = [[UIImageView alloc]initWithFrame:CGRectMake(10, CGRectGetMaxY(customImageView.frame)+10, (UISCREEN_WIDTH-40)/3, (UISCREEN_WIDTH-40)/3)];
    customImageView4.image = [UIImage imageNamed:@"logo_qtc_1_sm"];
    customImageView4.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:customImageView4];
    
    UIImageView *customImageView5 = [[UIImageView alloc]initWithFrame:CGRectMake((UISCREEN_WIDTH-40)/3+20, CGRectGetMaxY(customImageView.frame)+10, (UISCREEN_WIDTH-40)/3, (UISCREEN_WIDTH-40)/3)];
    customImageView5.image = [UIImage imageNamed:@"logo_qtc_1_sm"];
    customImageView5.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:customImageView5];
    
    UILabel *customLabel = [[UILabel  alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(customImageView5.frame)+20, UISCREEN_WIDTH, 1)];
    customLabel.backgroundColor = [UIColor grayColor];
    [self.view addSubview:customLabel];
    
    UIImageView *customImageView6 = [[UIImageView alloc]initWithFrame:CGRectMake(10, CGRectGetMaxY(customLabel.frame)+20, (UISCREEN_WIDTH-40)/3, (UISCREEN_WIDTH-40)/3)];
    customImageView6.image = [UIImage imageNamed:@"logo_qtc_1_sm"];
    customImageView6.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:customImageView6];
    
    UIImageView *customImageView7 = [[UIImageView alloc]initWithFrame:CGRectMake((UISCREEN_WIDTH-40)/3+20, CGRectGetMaxY(customLabel.frame)+20, (UISCREEN_WIDTH-40)/3, (UISCREEN_WIDTH-40)/3)];
    customImageView7.image = [UIImage imageNamed:@"logo_qtc_1_sm"];
    customImageView7.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:customImageView7];
    
    UIImageView *customImageView8 = [[UIImageView alloc]initWithFrame:CGRectMake((UISCREEN_WIDTH-40)/3*2+30, CGRectGetMaxY(customLabel.frame)+20, (UISCREEN_WIDTH-40)/3, (UISCREEN_WIDTH-40)/3)];
    customImageView8.image = [UIImage imageNamed:@"logo_qtc_1_sm"];
    customImageView8.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:customImageView8];
    
    UIImageView *customImageView9 = [[UIImageView alloc]initWithFrame:CGRectMake(10, CGRectGetMaxY(customImageView6.frame)+20, (UISCREEN_WIDTH-40)/3, (UISCREEN_WIDTH-40)/3)];
    customImageView9.image = [UIImage imageNamed:@"logo_qtc_1_sm"];
    customImageView9.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:customImageView9];
    
    UIImageView *customImageView10 = [[UIImageView alloc]initWithFrame:CGRectMake((UISCREEN_WIDTH-40)/3+20, CGRectGetMaxY(customImageView6.frame)+20, (UISCREEN_WIDTH-40)/3, (UISCREEN_WIDTH-40)/3)];
    customImageView10.image = [UIImage imageNamed:@"logo_qtc_1_sm"];
    customImageView10.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:customImageView10];

    UIImageView *customImageView11 = [[UIImageView alloc]initWithFrame:CGRectMake((UISCREEN_WIDTH-40)/3*2+30, CGRectGetMaxY(customImageView6.frame)+20, (UISCREEN_WIDTH-40)/3, (UISCREEN_WIDTH-40)/3)];
    customImageView11.image = [UIImage imageNamed:@"logo_qtc_1_sm"];
    customImageView11.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:customImageView11];

}



-(void)finishButtonAction:(id)Sender{
    NSLog(@"1123");
}

@end
